package com.jzo2o.customer.service;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.customer.model.dto.request.CertificationAuditReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditResDTO;

/**
 * <p>
 * 服务人员认证审核表 服务类
 * </p>
 *
 * @author jianghaijun
 * @since 2025-10-23
 */
public interface IWorkerCertificationAuditService extends IService<WorkerCertificationAudit> {

    /**
     * 提交认证
     * @param workerCertificationAuditAddReqDTO 认证参数
     */
    void submit(WorkerCertificationAuditAddReqDTO workerCertificationAuditAddReqDTO);

    /**
     * 查询最新的驳回原因
     * @return 驳回原因
     */
    String rejectReason();

    /**
     * 分页查询服务者认证申请
     *
     * @param workerCertificationAuditPageQueryReqDTO 分页查询参数
     * @return 分页结果
     */
    PageResult<WorkerCertificationAuditResDTO> page(WorkerCertificationAuditPageQueryReqDTO workerCertificationAuditPageQueryReqDTO);

    /**
     * 审核认证信息
     * @param certificationAuditReqDTO 审核结果参数
     */
    void audit(Long id, CertificationAuditReqDTO certificationAuditReqDTO);
}
